package com.taotao.rest.webservice;

import javax.jws.WebService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.taotao.rest.pojo.Item;
import com.taotao.rest.pojo.TaotaoResult;
import com.taotao.rest.service.ItemService;

@Component
@WebService(serviceName="ItemWebService", endpointInterface="com.taotao.rest.webservice.ItemWebService")
public class ItemWebServiceImpl implements ItemWebService {
	@Autowired
	private ItemService itemService;
	
	@Override
	public Item getItemBaseInfo(long id) {
		return itemService.getItemBaseInfo(id);
	}

	@Override
	public Item getItemDesc(long itemId) {
		Item itemDesc = itemService.getItemDesc(itemId);
		return itemDesc;
	}

}
